/*
 * Copyright (c) 2016, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.fpx.open.platform.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fpx.open.platform.dao.mapper0.CountryMappingMapper;
import com.fpx.open.platform.dao.mapper1.PrealertOrderMapper;
import com.fpx.open.platform.domain.prealert.CountryMapping;
import com.fpx.open.platform.domain.prealert.PrealertOrderTR;
import com.fpx.open.platform.domain.prealert.ProductMapping;
import com.fpx.open.platform.service.MultistageOrderService;

/**
 * 多段订单服务实现
 * @author shiw
 * @date 2016年8月8日
 */
//@Service
public class MultistageOrderServiceImpl implements MultistageOrderService {

	@Resource
	PrealertOrderMapper prealertOrderMapper;

	@Resource
    CountryMappingMapper countryMappingMapper;
	
	@Override
	public ProductMapping queryProductMapping(String carrierCode) {
		return prealertOrderMapper.getProductCode(carrierCode);
	}

	@Override
	public List<PrealertOrderTR> queryOrderByOrderNo(String orderNo, String trackingNumber) {
		return this.prealertOrderMapper.getOrderByNumber(orderNo, trackingNumber);
	}

	@Override
	public CountryMapping queryCountryMapping(String countryCode) {
		return this.countryMappingMapper.queryCountryMapping(countryCode);
	}

}
